package com.yxx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yxx.entity.Carousel;
import com.yxx.entityModel.vo.query.CarouselQuery;
import com.yxx.entityModel.vo.response.CarouselBackResponse;
import com.yxx.entityModel.vo.response.CarouselResponse;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author yuxiangxun
 * @date 2025/2/1
 * @apiNote
 */
@Repository
public interface CarouselMapper extends BaseMapper<Carousel> {
    /**
     * 查看轮播图列表
     * @return
     */
    List<CarouselResponse> selectCarouselList();

    /**
     * 查看轮播图列表
     * @param carouselQuery
     * @return
     */
    List<CarouselBackResponse> selectBackCarouselListVO(@Param("param") CarouselQuery carouselQuery);
}
